Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FLAG-1154: update dashboard sentences for natural forest #4884

Merged
merged 5 commits into from
Dec 3, 2024

Conversation

wri7tno
Copy link
Collaborator

@wri7tno wri7tno commented Nov 12, 2024

Overview

With Natural Forest epic, the dashboard sentences need to be updated, this PR address that.

Demo

If applicable: screenshots, gifs, etc.

Notes

If applicable: ancilary topics, caveats, alternative strategies that didn't work out, etc.

Testing

  • Include any steps to verify the features this PR introduces.
  • If this fixes a bug, include bug reproduction steps.

getLoss(params),
getLoss({ ...params, forestType: 'plantations' }),
getLoss({ ...params, forestType: 'primary_forest' }),
]).then(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to this day I really don't know why this function is invoking 3 times getExtent and getLoss with different params,
also I ignore if they are used in a specific page besides the dashboard

emissions: 0,
},
primaryLoss: {},
};
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like the dashboard sentences only require the following:

  • totalArea
  • extent
  • totalLoss: {
    area,
    year,
    emissions,
    }

hence I left the others with 0

@wri7tno wri7tno temporarily deployed to gfw-staging-pr-4884 November 12, 2024 22:14 Inactive
@wri7tno wri7tno temporarily deployed to gfw-staging-pr-4884 November 12, 2024 22:20 Inactive
@wri7tno wri7tno temporarily deployed to gfw-staging-pr-4884 November 12, 2024 22:25 Inactive
@wri7tno wri7tno temporarily deployed to gfw-staging-pr-4884 November 14, 2024 13:11 Inactive
@wri7tno wri7tno temporarily deployed to gfw-staging-pr-4884 November 15, 2024 17:47 Inactive
@wri7tno wri7tno self-assigned this Nov 24, 2024
@wri7tno wri7tno force-pushed the feat/FLAG-1155--natural-forest-widget branch from dc95e82 to 728a0a3 Compare December 2, 2024 16:55
@wri7tno wri7tno temporarily deployed to gfw-staging-pr-4884 December 3, 2024 20:10 Inactive
@wri7tno wri7tno merged commit c1adb70 into feat/FLAG-1155--natural-forest-widget Dec 3, 2024
@wri7tno wri7tno deleted the feat/FLAG-1154 branch December 3, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant